﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infrastructure;
using DormMS.Model;

namespace DormMS.IService
{
    public interface IWxConfigService
    {
        WxConfig GetConfig();

        Result WxConfigSubmit(WxConfig wxconfig);

        bool SaveToken(string token);

        /// <summary>
        /// 获取有效的accessToken
        /// </summary>
        /// <param name="url">用来验证token有效性的地址</param>
        /// <param name="appId"></param>
        /// <param name="secret"></param>
        /// <returns></returns>
        string GetCurrentToken(string url, string appId, string secret);
    }
}
